package com.woniuxy.service.impl;

import com.woniuxy.dao.AddressDao;
import com.woniuxy.pojo.Address;
import com.woniuxy.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    private AddressDao addressDao;
    @Override
    public List<Address> findAddressByUid(int uid) {
        return addressDao.findAddressByUid(uid);
    }

    @Override
    public void addAddress(Address address) {
        addressDao.addAddress(address);
    }
    @Override
    public void removeAddress(int addressId) {
        addressDao.removeAddress(addressId);
    }
}
